package cn.stronglink.assetmanage.business.inventory.view;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Toast;

import cn.stronglink.assetmanage.R;
import cn.stronglink.assetmanage.business.check.view.CheckView;
import cn.stronglink.assetmanage.business.inventory.model.InventoryModel;
import cn.stronglink.assetmanage.business.inventory.presenter.InventoryPresenter;
import cn.stronglink.assetmanage.dao.DaoManager;
import cn.stronglink.assetmanage.dao.SyncTypesDao;
import cn.stronglink.assetmanage.entity.SyncTypes;
import cn.stronglink.assetmanage.index.base.BaseFragment;
import cn.stronglink.assetmanage.index.base.BasePresenter;
import cn.stronglink.assetmanage.index.presenter.MenuPresenter;
import cn.stronglink.assetmanage.utils.Constants;
import cn.stronglink.assetmanage.widget.ViewPagerFragment;

/**
 * Created by Tgb on 2018/6/9.
 * 盘点--入口fragment
 */

public class InventoryFragment extends ViewPagerFragment {
    private InventoryView inventoryView;
    private InventoryModel inventoryModel;
    private InventoryPresenter inventoryPresenter;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        rootView = inflater.inflate(R.layout.fragment_inventory, container, false);
        initViewAndData(rootView);
        return rootView;
    }

    private void initViewAndData(View view) {
        inventoryView = new InventoryView(this, view);
        inventoryModel = new InventoryModel();
        inventoryPresenter = new InventoryPresenter(inventoryView, inventoryModel);
    }


    @Override
    public void onDestroyView() {
        super.onDestroyView();
    }

}
